
/**
\file
Defines the sun::exception class.
\author Sean Tromans
*/

#ifndef	SUN_EXCEPTION_HPP
#define	SUN_EXCEPTION_HPP

#include <sun/log/log.hpp>
#include <exception>

namespace sun
{

	/**
	The base class for all exceptions fired within sun.
	\author Sean Tromans
	*/
	class exception : public std::exception
	{
	public:
		exception( std::string const & message )
			:		std::exception( message.c_str( ) )
		{
			log( message );
		}
	};

}

#endif	//SUN_EXCEPTION_HPP
